package com.cetc32.dh.mybatis;

import com.cetc32.dh.entity.Productdemand;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProductdemandMapper {

    List<Productdemand> findAll();

    int deleteByPrimaryKey(Integer id);

    int insert(Productdemand record);

    int insertSelective(Productdemand record);

    Productdemand selectByPrimaryKey(Integer id);

    List<Productdemand> selectByLimit(@Param("offset") Integer offset,@Param("limit") Integer limit);

    int countProduct();

    int updateByPrimaryKeySelective(Productdemand record);

    int updateByPrimaryKey(Productdemand record);

    List<Productdemand> findByKeyWord(String keyword);
}